﻿<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ include file="basePath.jsp"%>
<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>ProClinic-医院管理系统Bootstrap4前端框架</title>
	<!-- Fav  Icon Link -->
	<link rel="shortcut icon" type="image/png" href="${basePath}afsets/images/fav.png">
	<!-- Bootstrap core CSS -->
	<link rel="stylesheet" href="${basePath}afsets/css/bootstrap.min.css">
	<!-- themify icons CSS -->
	<link rel="stylesheet" href="${basePath}afsets/css/themify-icons.css">
	<!-- Animations CSS -->
	<link rel="stylesheet" href="${basePath}afsets/css/animate.css">
	<!-- Main CSS -->
	<link rel="stylesheet" href="${basePath}afsets/css/styles.css">
	<link rel="stylesheet" href="${basePath}afsets/css/green.css" id="style_theme">
	<link rel="stylesheet" href="${basePath}afsets/css/responsive.css">
	<!-- morris charts -->
	<link rel="stylesheet" href="${basePath}afsets/charts/css/morris.css">
	<!-- jvectormap -->
	<link rel="stylesheet" href="${basePath}afsets/css/jquery-jvectormap.css">
	<link rel="stylesheet" href="${basePath}afsets/datatable/dataTables.bootstrap4.min.css">

	<script src="${basePath}afsets/js/modernizr.min.js"></script>
</head>

<body>
	<!-- Pre Loader -->
	<div class="loading">
		<div class="spinner">
			<div class="double-bounce1"></div>
			<div class="double-bounce2"></div>
		</div>
	</div>
	<!--/Pre Loader -->
	<!-- Color Changer -->
	<div class="theme-settings" id="switcher">
		<span class="theme-click">
			<span class="ti-settings"></span>
		</span>
		<span class="theme-color theme-default theme-active" data-color="green"></span>
		<span class="theme-color theme-blue" data-color="blue"></span>
		<span class="theme-color theme-red" data-color="red"></span>
		<span class="theme-color theme-violet" data-color="violet"></span>
		<span class="theme-color theme-yellow" data-color="yellow"></span>
	</div>
	<!-- /Color Changer -->
	<div class="wrapper">
		<!-- Page Content -->
		<div id="content">
				<!-- Top Navigation -->
				<div class="container top-brand">
					<nav class="navbar navbar-default">			
						<div class="navbar-header">
							<div class="sidebar-header"> <a href="index.html"><img src="${basePath}afsets/images/logo-dark.png" class="logo" alt="logo"></a>
							</div>
						</div>
						<ul class="nav justify-content-end">
							<%@include file="loginOut_head.jsp"%>
						</ul>
					</nav>
				</div>
				<!-- /Top Navigation -->
				<!-- Menu -->
				<div class="container menu-nav">
					<nav class="navbar navbar-expand-lg lochana-bg text-white">
						<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
						 aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
							<span class="ti-menu text-white"></span>
						</button>
				
						<div class="collapse navbar-collapse" id="navbarSupportedContent">
							<ul class="navbar-nav mr-auto">
								<%@include file="headHTML.jsp"%>
							</ul>
						</div>
					</nav>
				</div>
				<!-- /Menu -->
				<!-- Breadcrumb -->
				<!-- Page Title -->
				<div class="container mt-0">
					<div class="row breadcrumb-bar">
						<div class="col-md-6">
							<h3 class="block-title">病人管理</h3>
						</div>
						<div class="col-md-6">
							<ol class="breadcrumb">
								<li class="breadcrumb-item">
									<a href="index.html">
										<span class="ti-home"></span>
									</a>
								</li>
								<li class="breadcrumb-item">病人管理</li>
								<li class="breadcrumb-item active">All 病人管理</li>
							</ol>
						</div>
					</div>
				</div>
			<!-- /Page Title -->

			<!-- /Breadcrumb -->
			<!-- Main Content -->
			<div class="container">

				<div class="row">
					<!-- Widget Item -->
					<div class="col-md-12">
						<div class="widget-area-2 lochana-box-shadow">
							<h3 class="widget-title">病人管理 List</h3>							
							<div class="table-responsive mb-3">
								<table id="tableId" class="table table-bordered table-striped">
									<thead>
										<tr align="center">
											<th class="no-sort">
												<div class="custom-control custom-checkbox">
													<input class="custom-control-input" type="checkbox" id="select-all">
													<label class="custom-control-label" for="select-all"></label>
												</div>
											</th>
											<th>ID</th>
											<th>患者姓名</th>
											<th>性别</th>
											<th>电话</th>
											<th>身份证</th>
											<th>操作</th>
										</tr>
									</thead>
									<tbody>
									<c:forEach items="${patients}" var="patient">
										<tr align="center">
											<td>
												<div class="custom-control custom-checkbox">
													<input class="custom-control-input" type="checkbox" id="1">
													<label class="custom-control-label" for="1"></label>
												</div>
											</td>
											<td>${patient.id}</td>
											<td>${patient.name}</td>
											<td>${patient.sex}</td>
											<td>${patient.phone}</td>
											<td>${patient.idcard}</td>
											<td>
												<a class="btn btn-primary" href="editPatient?id=${patient.id}" role="button">修改</a>
												<a class="btn btn-outline-danger" href="editPatient?id=${patient.id}" role="button">删除</a>
											</td>
										</tr>
									</c:forEach>
									</tbody>
								</table>
								<!--Export links-->
								<nav aria-label="Page navigation example">
									<ul class="pagination justify-content-center export-pagination">
										<li class="page-item">
											<a class="page-link" href="#"><span class="ti-download"></span> csv</a>
										</li>
										<li class="page-item">
											<a class="page-link" href="#"><span class="ti-printer"></span>  print</a>
										</li>
										<li class="page-item">
											<a class="page-link" href="#"><span class="ti-file"></span> PDF</a>
										</li>
										<li class="page-item">
											<a class="page-link" href="#"><span class="ti-align-justify"></span> Excel</a>
										</li>
									</ul>
								</nav>
							</div>
						</div>
					</div>
					<!-- /Widget Item -->
				</div>
			</div>
			<!-- /Main Content -->
			<!--Copy Rights-->
			<div class="container">
				<div class="d-sm-flex justify-content-center">
				  <span class="text-muted text-center d-block d-sm-inline-block">Copyright © 2018 <a href="#" target="_blank">konnectcode</a>. All rights reserved.</span> 更多模板：<a href="http://www.mycodes.net/" target="_blank">源码之家</a>
				</div>
			</div>
			<!-- /Copy Rights-->
		</div>
		<!-- /Page Content -->
	</div>
	<!-- Back to Top -->
	<a id="back-to-top" href="#" class="back-to-top">
		<span class="ti-angle-up"></span>
	</a>
	<!-- /Back to Top -->
	<!-- Jquery Library-->
	<script src="${basePath}afsets/js/jquery-3.2.1.min.js"></script>
	<!-- Popper Library-->
	<script src="${basePath}afsets/js/popper.min.js"></script>
	<!-- Bootstrap Library-->
    <script src="${basePath}afsets/js/bootstrap.min.js"></script>
    
    <!-- Datatable  -->
	<script src="${basePath}afsets/datatable/jquery.dataTables.min.js"></script>
	<script src="${basePath}afsets/datatable/dataTables.bootstrap4.min.js"></script>
    
	<!-- Custom Script-->
	<script src="${basePath}afsets/js/custom.js"></script>
	<script src="${basePath}afsets/js/custom-datatables.js"></script>

</body>

</html>